import { http } from '@/utils/http'
import type { PageParams, PageResult } from '@/types/global'
import type { ExerciseResult, ErrorQuestion } from '@/types/exercise'

export const saveExerciseResultAPI = (data: ExerciseResult) => {
  return http<PageResult<ExerciseResult>>({
    method: 'GET',
    url: '/wechat/home/message/list',
    data,
  })
}

export const getErrorQuestionsAPI = (data: PageParams) => {
  return http<PageResult<ErrorQuestion>>({
    method: 'GET',
    url: '/wechat/home/message/list',
    data,
  })
}
